-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-8671: [C++] Use new BodyCompression Flatbuffers member for IPC compression metadata #7571
Conversation
I confirmed that I can read compressed files (including compressed dictionaries) generated from master |
Oops, I didn't mean to merge this patch, sorry! Please review it and I will address any code reviews as follow up |
This has an ASAN/UBSAN failure. I will fix within an hour |
@@ -66,6 +67,10 @@ struct ARROW_EXPORT IpcWriteOptions { | |||
/// like compression | |||
bool use_threads = true; | |||
|
|||
/// \brief Format version to use for IPC messages and their | |||
/// metadata. Presently using V4 version (readable by v0.8.0 and later). | |||
MetadataVersion metadata_version = MetadataVersion::V4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it a bit weird to expose this an option. Will we be able to write data compatible with other metadata versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. This is what I've been saying in the V4/V5 MetadataVersion discussion e-mail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I had misunderstood that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll close this for now. Please leave any review comments and I can address them later |
…compression metadata If the message uses V4 metadata then we also look for the "ARROW:experimental_compression" field in Message::custom_metadata so that IPC message written with 0.17.x can be read in 1.0.0 and beyond. Closes apache#7571 from wesm/ARROW-8671 Authored-by: Wes McKinney <[email protected]> Signed-off-by: Wes McKinney <[email protected]>
If the message uses V4 metadata then we also look for the "ARROW:experimental_compression" field in Message::custom_metadata so that IPC message written with 0.17.x can be read in 1.0.0 and beyond.